﻿@model Cxuu.Models.Notice
<link rel="stylesheet" href="~/lib/layui/css/layui.css">
<div class="layui-fluid" style="margin-bottom:50px;">
    <div class="layui-card">
        <div class="layui-card-header" style="text-align:center;">
            <h2>@Model.Title</h2>
        </div>
        <div class="layui-card-body" style="line-height:25px;padding:20px;">
            <pre>@Html.Raw(Model.Content)</pre>
            <hr>
            <div style="text-align:right;">
                Time:@Model.PostTime
            </div>
        </div>
    </div>

    @if (ViewBag.attments != null)
    {
        <fieldset class="layui-elem-field">
            <legend>附件</legend>
            <div class="layui-field-box layui-row layui-col-space15">

                @foreach (var vo in ViewBag.attments)
                {
                    <div class="layui-col-md12">
                        <div class="layui-panel">
                            <div style="padding: 10px;">
                                ID:@vo.Id   下载：<a href="@vo.Url" style="color:#009688; font-size:16px;" download="@vo.Filename"> @vo.Filename </a>
                            </div>
                        </div>
                    </div>
                }
            </div>
        </fieldset>
    }
</div>
